<template>
  <div>
    <commhead-2 name="个人信息"/>
    <div class="container">
      <span>
        上传图片
      </span>
      <van-uploader :after-read="afterRead" />
    </div>
  </div>
</template>

<script>
import Commhead2 from '../../components/Commhead2.vue'
export default {
  methods: {
    afterRead (file) {
      // 此时可以自行将文件上传至服务器
      console.log(file)
    }
  },
  components: { Commhead2 }
}
</script>

<style lang="scss" scoped>
.container{
  font-size: 16px;
  padding-top: 50px;
}
</style>
